projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
399df06
)
cssstyle: Add optimization
author
Benjamin Otte
<otte@redhat.com>
Sun, 22 Feb 2015 17:04:43 +0000
(18:04 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Wed, 18 Mar 2015 14:23:32 +0000
(15:23 +0100)
There is no difference between a style and itself.
gtk/gtkcssstyle.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssstyle.c
b/gtk/gtkcssstyle.c
index 040998b6cb7eefb83b267d21d28a75c16bce40cd..084919159ec6468f8d90549904d75d989e20f71b 100644
(file)
--- a/
gtk/gtkcssstyle.c
+++ b/
gtk/gtkcssstyle.c
@@
-82,6
+82,9
@@
gtk_css_style_get_difference (GtkCssStyle *style,
GtkBitmask *result;
guint i, len;
+ if (style == other)
+ return _gtk_bitmask_new ();
+
result = _gtk_bitmask_new ();
len = _gtk_css_style_property_get_n_properties ();
for (i = 0; i < len; i++)